<style>
    .show_tb{width: 80%;}
    .show_tb>thead>tr>th, .show_tb>tbody>tr>th, .show_tb>tfoot>tr>th, .show_tb>thead>tr>td, .show_tb>tbody>tr>td, .show_tb>tfoot>tr>td{border: 1px solid #f4f4f4;}
    .show_tb tr td:nth-child(odd){ text-align: right;}
    .show_tb .img_td{text-align: center !important;}
    .show_tb .img_div img{width: 100px; height: 100px; }
    .show_tb span{padding: 5px 10px; display: block;}
    .show_tb .vip{width:50%;margin-left: 25%; color: #fff; background-color: rgba(240, 72, 68, 1); border-radius: 15px;}
    .m_tab{margin-bottom: 10px;}
    .m_tab a{color:#000;}
    .m_tab .tb{display: inline-block;background-color: #fff; padding: 5px 10px;cursor:pointer; margin-right: 5px;}
    .m_tab .tb:hover{color:rgba(26, 188, 156, 1);}
    .m_tab .curr{background-color: rgba(26, 188, 156, 1);color:#fff;}
    .m_tab .curr:hover{color: #fff;}
</style>

<div class="m_tab">
    <a href="/users/{{$id}}"><span class="tb curr">用户详情</span></a>
    <a href="/users/{{$id}}/edit"><span class="tb">编辑资料</span></a>
    <a href="/users/parentDetail/{{$id}}"><span class="tb">家长身份</span></a>
    <div class="btn-group pull-right" style="margin-right: 5px;">
        <a href="/users" class="btn btn-sm btn-default" title="列表"><i class="fa fa-list"></i>
            <span class="hidden-xs">&nbsp;返回列表</span>
        </a>
    </div>
</div>
<div class="box box-solid">
    <div class="box-body no-padding">
        <table class="table show_tb">
            <tbody>
            <tr>
                <td rowspan="6" class="img_td">
                    <div class="img_div">
                        <img src="{{$avatar}}">
                        <br>
                        <span>{{$telephone}}</span>
                        <span class="vip">
                        @if($vip && $vip['name'])
                            {{$vip['name']}}
                            @else
                            普通用户
                            @endif
                        </span>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <span>用户ID</span>
                </td>
                <td>
                    {{$id}}
                </td>
                <td>
                    创建班级个数
                </td>
                <td>
                    {{$create_count}}
                </td>
            </tr>
            <tr>
                <td>
                    昵称
                </td>
                <td>
                    {{$nickname}}
                </td>
                <td>
                    加入班级个数
                </td>
                <td>
                    {{$classes_count}}
                </td>
            </tr>
            <tr>
                <td>
                    性别
                </td>
                <td>
                    {{$gender}}
                </td>
                <td>
                    所在学校个数
                </td>
                <td>
                    {{$school_count}}
                </td>
            </tr>
            <tr>
                <td>
                    生日
                </td>
                <td>
                    {{$birthday}}
                </td>
                <td>
                    注册时间
                </td>
                <td>
                    {{$created_at}}
                </td>
            </tr>
            <tr>
                <td>
                    城市
                </td>
                <td>
                    {{$area}}
                </td>
                <td>
                    用户来源
                </td>
                <td>
                    {{$reg_from}}
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>